<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with source code - Processing 2.x and 3.x Forum</title>
      <link>https://forum.processing.org/two/discussions/tagged/feed.rss?Tag=source+code</link>
      <pubDate>Sun, 08 Aug 2021 18:12:23 +0000</pubDate>
         <description>Tagged with source code - Processing 2.x and 3.x Forum</description>
   <language>en-CA</language>
   <atom:link href="/two/discussions/taggedsource+code/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>p5.prototype.Line (line 7925 on v0.5.7) - why copy arguments[] into a new args[] array?</title>
      <link>https://forum.processing.org/two/discussion/21476/p5-prototype-line-line-7925-on-v0-5-7-why-copy-arguments-into-a-new-args-array</link>
      <pubDate>Sun, 19 Mar 2017 12:25:40 +0000</pubDate>
      <dc:creator>jaschanarveson</dc:creator>
      <guid isPermaLink="false">21476@/two/discussions</guid>
      <description><![CDATA[<p>I'm looking at the source code for p5.js, in particular at the p5.prototype.Line function, which starts by taking the arguments[] array from the function and creating a new Array to copy them in to:</p>

<pre><code>p5.prototype.line = function() {
  if (!this._renderer._doStroke) {
    return this;
  }
  var args = new Array(arguments.length);
  for (var i = 0; i &lt; args.length; ++i) {
    args[i] = arguments[i];
  }
</code></pre>

<p>The rest of the function just uses the args[] array without making any changes to it - if that's the case, why copy the arguments[] array instead of just using it directly?  I'm sure there's a reason - i would love to know what it is.</p>

<p>cheers,</p>

<p>j</p>
]]></description>
   </item>
   <item>
      <title>Where can I edit contributed library source code?</title>
      <link>https://forum.processing.org/two/discussion/14620/where-can-i-edit-contributed-library-source-code</link>
      <pubDate>Tue, 26 Jan 2016 06:04:59 +0000</pubDate>
      <dc:creator>ProJammin</dc:creator>
      <guid isPermaLink="false">14620@/two/discussions</guid>
      <description><![CDATA[<p>I'm using Minim library and I need to do one of two things: I need to either extend a class in the library, or make some alterations to the minim source code. The problem is: I have no idea how to start a new project in the processing environment so I can extend the class, and I have no idea where the source code is located. I searched through the processing folder in my file system, but it found no instances of Minim. Help please?</p>
]]></description>
   </item>
   </channel>
</rss>